package com.salatigacode.customerdatabase.dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class ConnectionDB {
	private static final String user = "root";
	private static final String pass = "admin";
	private static final String url = "jdbc:mysql://localhost:3306/dbrcp";
	
	public static Connection getConnection(){
		Connection conn = null;
		try{
			Class.forName("com.mysql.jdbc.Driver").newInstance();
			conn = DriverManager.getConnection(url, user, pass);
		}catch(Exception ex){
			System.err.println(ex.getMessage());
		}
		return conn;
	}
}
